import {reactive} from "vue";
import {IModelRef} from "@/views/Admin/Main/AddForm/types";
import {Rule} from "ant-design-vue/es/form";

export const modelRef = reactive<IModelRef>({
    "username": "",
    "password": "",
    "permission": 1,
});
export const rulesRef = reactive<Record<string, Rule[]>>({
    "username": [{
        required: true,
        message: "请输入用户名"
    }],
    "password": [{
        required: true,
        message: "请输入密码"
    }],
    "permission": [{
        required: true, message: '请选择等级'
    }],
})
